import timeago from 'timeago.js'
export default {
  install: function (Vue) {
    Vue.filter('time', function (val, option) {
      return timeago(null, 'zh_CN').format(val)
    })
  }
}
